package com.dnjn.happiness.biz.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dnjn.happiness.biz.domain.Behavior;
import com.dnjn.happiness.biz.mapper.BehaviorMapper;
import com.dnjn.happiness.biz.service.IBehaviorService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 行为记录Service业务层处理
 *
 * @author happiness
 * @date 2023-10-18
 */
@Service
public class BehaviorServiceImpl extends ServiceImpl<BehaviorMapper, Behavior> implements IBehaviorService {

    @Override
    public Page<Behavior> getPage(Page<Behavior> page, Map<String, Object> map) {
        return baseMapper.getPage(page, map);
    }

    @Override
    public List<Behavior> getBehaviorInfoByUserId(Long userId) {
        return baseMapper.getBehaviorInfoByUserId(userId);
    }


}
